import Vue from 'vue';
import iView from 'iview';
import {router} from './router/index';
import store from './store';
import App from './app.vue';
import 'iview/dist/styles/iview.css';
import axios from 'axios';
import util from './libs/util';
import { codemirror } from 'vue-codemirror'
import 'codemirror/lib/codemirror.css'

axios.defaults.withCredentials = true;
axios.defaults.timeout = 8000;

Vue.prototype.$axios = axios;
Vue.prototype.$util = util;
Vue.use(iView);
Vue.use(codemirror)

new Vue({
    el: '#app',
    router: router,
    store: store,
    render: h => h(App),
    mounted () {
        this.$store.commit('updateMenulist');
    }
});
